package com.changgou.pay.service;

import java.util.Map;

/**
 * @author kfzhao
 * @version 1.0
 * @interfaceName WXPayService
 * @description
 * @date 2022/1/4 17:56
 **/
public interface WXPayService {

    /**
     * 本地支付
     *
     * @param orderId 订单id
     * @param money   要支付的费用
     * @return java.util.Map
     * @throws
     * @description
     * @author kfzhao
     * @date 2022/1/4 17:57
     */
    Map nativePay(String orderId, Integer money);

    /**
     * 根据微信的接口查询订单信息
     *
     * @param orderId
     * @return java.util.Map
     * @throws
     * @description
     * @author kfzhao
     * @date 2022/1/4 20:55
     */
    Map queryOrder(String orderId);

    /**
     * 基于微信API关闭订单
     *
     * @param orderId
     * @return java.util.Map
     * @throws
     * @description
     * @author kfzhao
     * @date 2022/1/5 0:19
     */
    Map closeOrder(String orderId);
}
